import request from '@/utils/request'
/**
 *  按需导出商品分类
 * @returns
 */
export const findAllCategory = () => {
  return request('/home/category/head', 'get')
}
/**
 *一级类目商品推荐
 */
export const findTopCategory = (id) => {
  return request('/category', 'get', { id })
}
/**
 * 二级类目筛选
 */
export const findSubCatetoryFilter = (id) => {
  return request('/category/sub/filter', 'get', { id })
}
/**
 * 商品列表_临时
 * @param {*} id
 * @returns
 */
export const findSubCatetoryGoods = (data) => {
  return request('/category/goods/temporary', 'post', data)
}
